package com.zhao.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:ConfigClientController
 * @author:赵培舒
 * @date:Created in 2021/4/28 21:30
 * @Email:stevezhao@nyist.edu.cn
 * @description:
 * @version:
 */
@RestController
public class ConfigClientController {

    @Value("${spring.application.name}")
    private String applicationName ;
    @Value("${eureka.client.service-url.defaultZone}")
    private String eurekaServer;
    @Value("${server.port}")
    private String port;

    @RequestMapping("/config")
    public String getconfig(){
        return "applicationName"+applicationName+
                "eurekaServer" + eurekaServer +
                "port"+ port;
    }

}
